package com.rbac.application.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rbac.domain.dto.query.OperationLogPageQuery;
import com.rbac.domain.entity.OperationLog;

import java.util.List;

public interface OperationLogService extends IService<OperationLog> {

    IPage<OperationLog> pageOperationLogs(OperationLogPageQuery query);

    OperationLog getLogById(Long id);

    void saveLog(OperationLog log);

    List<OperationLog> getLogsByUserId(Long userId);

    void cleanOldLogs(int days);

    void exportLogs(OperationLogPageQuery query);
}